package com.css.apps.task.exec;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * CSS Task ScheduleListener
 * 配置在Web.xml中<listener><listener-class></listener-class></listener>
 * 
 * @author WeidongWang
 * @since 2012-8-23
 * @version 0.1
 */
public class ScheduleListener implements ServletContextListener {
	private static Log log = LogFactory.getLog(ScheduleListener.class);
	public void contextInitialized(ServletContextEvent event) {
		log.info("定时器启动");
		new DoJob().init();
	}
	public void contextDestroyed(ServletContextEvent event) {
		log.info("定时器销毁");
	}
}
